#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##############################################
# @Author: DengLibin 榆霖
# @Date: Create in 2022-03-08 16:10:55
# @Description: xpath  
##############################################

# 安装lxml模块
# pip install  lxml

'module name'
__author__ = 'DengLibin'
import my_file


from lxml import etree

def run():
    content = """
        <html>
            <head>
                <title>电影天堂</title>
            </head>
        </html>
    """
    tree = etree.XML(content)
    r = tree.xpath('/html/head/title/text()')
    print(r)
    
if __name__ == '__main__':
    run()
